package com.mab.excption;

import java.util.Scanner;

/**
 * @author weifuqiang
 * @create_time 2022/6/13
 *
 */
public class excpt2 {
    public static void main(String[] args) {
        try{
            Scanner scanner = new Scanner(System.in);
            System.out.println("请录入第一个数据");
            int num1 = scanner.nextInt();
            System.out.println("请录入第二个数据");
            int num2 = scanner.nextInt();
            System.out.println("商: "+num1/num2);
        }catch (Exception e)
        {
            System.out.println("对不起，你的程序出现异常");
        }

    }
}
